package com;

/**
 * @author MaoLin Wang
 * @description
 * @date 2020/9/8 12:07 上午
 */
public class Test {
    static class QQ{

    }
    static class _360{}

    static class Father{
        public void  choose(QQ qq){
            System.out.println("father choose QQ");
        }
        public void choose(_360 _360){
            System.out.println("father choose 360");
        }
    }

    static class Son extends Father{
        @Override
        public void  choose(QQ qq){
            System.out.println("son choose QQ");
        }
        @Override
        public void choose(_360 _360){
            System.out.println("son choose 360");
        }
    }

    public static void main(String[] args) {
        Father father=new Father();
        father.choose(new QQ());
        Father  son=new Son();
        son.choose(new _360());

    }
}
